package com.health.yb.web.bean.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "用户或者类型请求对象")
public class NameReq implements Serializable {

    @ApiModelProperty("用户(名称必须以英文分号隔开)或者物资名称")
    @NotBlank(message = "名称不为空")
    private String name;
}
